/* Floating Cards */
#layanan {
    position: relative;
    margin-top: -80px;
    /* Atur margin atas */
    z-index: 1;
    padding-bottom: 40px;
    /* Tambahkan jarak bawah untuk ruang ekstra */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    /* Izinkan card untuk membungkus ke baris baru */
    gap: 40px;
    /* Jarak antar card */
}

/* Card layanan */
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 12px;
    box-shadow: 3px 3px 8px #d1d1d1, -3px -3px 8px #ffffff;
    transition: all 0.3s ease;
    padding: 20px;
    cursor: pointer;
    min-height: 200px;
    width: 250px;
    box-sizing: border-box;
    /* Pastikan padding dihitung dalam lebar */
    flex: 0 0 300px;
    /* Memastikan ukuran card tetap konsisten */
    /* Setiap card mengambil 25% lebar dengan gap */
    max-width: 100%;
    /* Membatasi lebar card agar tidak lebih besar dari container */
    /* Batas maksimum ukuran */
    min-width: 200px;
    /* Ukuran minimum agar responsif */
}

/* Hover efek */
.service-card:hover {
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    box-shadow: 5px 5px 12px #c1c1c1, -5px -5px 12px #ffffff;
    transform: scale(1.05);
}

.service-card i {
    font-size: 48px;
    color: #5CB338;
    transition: color 0.3s ease;
}

.service-card:hover i {
    color: #4a9932;
    /* Sedikit lebih gelap saat hover */
}

.service-card.active {
    transform: scale(1.3);
    z-index: 10;
    /* Agar card yang aktif di tengah lebih menonjol */
}

.service-card h6 {
    margin-top: 10px;
    font-size: 16px;
    color: #495057;
}

/* Slider Container */
.slider-container {
    display: flex;
    /* Mengatur elemen dalam satu baris */
    gap: 16px;
    /* Jarak antar elemen */
    overflow-x: auto;
    /* Scroll horizontal */
    padding: 16px;
}

.slider-container::-webkit-scrollbar {
    display: none;
    /* Sembunyikan scrollbar */
}

/* Membatasi lebar slider */
.slider-container-md {
    max-width: 1200px;
    /* Atur lebar maksimum sesuai kebutuhan */
    margin: 0 auto;
    /* Tengahkan slider */
    position: relative;
    overflow: hidden;
    /* Sembunyikan konten di luar kontainer */
}

/* Slider Wrapper */
.slider-wrapper {
    display: flex;
    gap: 20px;
    overflow: hidden;
    /* Menghindari overflow pada slider wrapper */
    scroll-behavior: smooth;
    padding: 10px;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    /* Tambahkan transisi untuk efek animasi */
}

/* Tombol Navigasi */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
}

.slider-btn:hover {
    background: #444;
    /* Warna hover lebih lembut */
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Responsivitas */
@media (max-width: 768px) {
    .slider-container-md {
        max-width: 100%;
        /* Lebar penuh untuk layar kecil */
        padding: 0 16px;
        /* Tambahkan padding untuk ruang di kiri dan kanan */
    }
}




/* Z-index for modal and backdrop */
.modal-backdrop {
    z-index: 1049;
}

.modal {
    z-index: 1050;
}

.hero-wrapper {
    position: relative;
    height: 65vh;
    overflow: hidden;
}

.hero-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-section.active {
    opacity: 1;
    z-index: 1;
}

/* Gambar latar belakang default (tanpa blur) */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(70%);
    /* Hanya efek redup tanpa blur */
    z-index: 0;
}

/* Efek blur jika ada teks */
.blurred {
    filter: blur(3px) brightness(70%);
}


/* Konten tetap tajam */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-section h1 {
    font-size: 6rem;
    font-weight: bold;
    margin: 0;
}

.hero-section p {
    font-size: 2rem;
    font-weight: normal;
    margin-top: 10px;
}


@media (max-width: 768px) {
    .hero-section {
        height: 350px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}


@media (max-width: 768px) {
    .hero-section {
        height: 350px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}



.doctor-schedule {
    margin: 50px auto;
    max-width: 1000px;
}

.doctor-schedule table {
    border-collapse: collapse;
    width: 100%;
}

.doctor-schedule th {
    background-color: #f8f9fa;
    color: #17a2b8;
    text-align: center;
    font-size: 1.1rem;
    border-bottom: 2px solid #333;
}

.doctor-schedule td {
    text-align: center;
    padding: 15px;
    font-size: 1rem;
}

.doctor-name {
    color: #17a2b8;
    font-weight: bold;
}

.doctor-time {
    font-size: 0.9rem;
    color: #555;
}

#jadwal {
    /* Sesuaikan dengan tinggi navbar tetap */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Pusatkan secara vertikal */
    align-items: center;
    /* Pusatkan secara horizontal */
    min-height: 100vh;
    /* Isi layar penuh */
    text-align: center;
    /* Pastikan konten di tengah */
}



/* untuk chat wa */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-button img {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-button img {
        width: 28px;
        height: 28px;
    }
}

/* untuk dokter */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card-title {
    font-weight: bold;
    color: #007bff;
}

.card-text {
    color: #6c757d;
}


/* Ukuran gambar lebih kecil */
.card-img-top {
    height: 30vh;
    /* Perkecil tinggi gambar */
    object-fit: cover;
    /* Potong gambar agar pas dengan area */
    background-color: #f8f9fa;
}

/* Kurangi padding dalam card */
.card-body {
    padding: 10px;
    /* Lebih kecil dari default */
}

/* Ukuran teks lebih kecil */
.card-title {
    font-size: 1rem;
    /* Judul lebih kecil */
    font-weight: bold;
}

.card-text {
    font-size: 0.875rem;
    /* Ukuran teks deskripsi lebih kecil */
    color: #6c757d;
    /* Warna teks lebih lembut */
}

.badge {
    font-size: 0.75rem;
    /* Ukuran badge lebih kecil */
}

/* Jarak antar kolom */
.row>.col-md-3 {
    margin-bottom: 1rem;
}

#article-blog {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.article-item {
    transition: all 0.3s ease;
}

#toggle-articles {
    display: inline-block;
    background-color: #ffc107;
    border: none;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#toggle-articles:hover {
    background-color: #e0a800;
}


section {
    scroll-margin-top: 60px;
    /* Sesuaikan dengan tinggi navbar tetap Anda */
}

/* Styling untuk Gallery Section */
#photo-gallery {
    padding: 50px 0;
}

/* Style untuk galeri */
.gallery-section {
    padding: 50px 15px;
    text-align: center;
    background-color: #f8f9fa;
}

.gallery-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 15px;
}

.gallery-description {
    text-align: center;
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 30px;
}

/* Grid Layout untuk galeri */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Mengatur ukuran kolom */
    gap: 15px;
    justify-items: center;
}

/* Card galeri */
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

/* Efek hover untuk card galeri */
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

/* Ukuran gambar dalam card */
.gallery-img {
    width: 100%;
    /* Membuat gambar memenuhi lebar card */
    height: 300px;
    /* Menetapkan tinggi gambar tetap */
    object-fit: cover;
    /* Menjaga proporsi gambar */
    transition: transform 0.3s ease;
}

/* Efek zoom pada gambar saat hover */
.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* Responsif untuk layar lebih kecil */
@media (max-width: 767px) {
    .gallery-title {
        font-size: 24px;
    }

    .gallery-description {
        font-size: 14px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        /* Ukuran lebih kecil untuk layar kecil */
    }
}


/* Style untuk modal */
.modal-photo img {
    width: 100%;
    border-radius: 10px;
}

.modal-details {
    text-align: left;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.thumbnail-img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    cursor: pointer;
    object-fit: cover;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.thumbnail-img:hover {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.modal-main-photo {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    /* Membuat gambar seragam dalam frame */
}

.thumbnail-img {
    width: 100px;
    /* Seragamkan lebar thumbnail */
    height: 100px;
    object-fit: cover;
    /* Pastikan gambar tidak melar */
    cursor: pointer;
    /* Tambahkan indikator klik */
}

.modal-thumbnails {
    max-height: 200px;
    /* Batasi tinggi area thumbnail */
    overflow-y: auto;
    /* Tambahkan scroll jika thumbnail terlalu banyak */
}

/* Responsif */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 24px;
    }

    .gallery-description {
        font-size: 14px;
    }
}

.navbar-brand i,
.navbar-brand {
    color: #5CB338;
}

/* Untuk nav-link */
.navbar-nav .nav-link {
    color: #000;
    /* Warna teks default */
    text-decoration: none;
    /* Hilangkan underline default */
    transition: color 0.3s, text-decoration 0.3s;
    /* Animasi */
}

/* Hover effect */
.navbar-nav .nav-link:hover {
    color: #5CB338;
    /* Warna saat hover sama dengan navbar-brand */
    text-decoration: underline;
    /* Garis bawah saat hover */
}

/* Active state */
.navbar-nav .nav-link.active {
    color: #5CB338;
    /* Warna saat aktif */
    text-decoration: underline;
    /* Garis bawah */
    font-weight: bold;
}

.navbar-brand i {
    color: #5CB338;
    /* Warna ikon */
}

.navbar-brand span {
    color: #5CB338;
    /* Warna teks */
}

/* Warna default untuk ikon */
.nav-item i {
    color: var(--bs-primary, #5CB338);
    /* Menggunakan warna Bootstrap "text-primary" */
}

/* Jika ingin menyesuaikan warna teks */
.nav-item span,
.nav-item i {
    color: inherit;
    /* Ikon mengikuti warna teks di sekitarnya */
}

/* Khusus untuk button */
.btn-primary i {
    color: #fff;
    /* Warna ikon putih untuk tombol utama */
}

/* akhir navbar */

#tentang {
    background-color: #f8f8f8;
    padding: 3rem 0;
}

#tentang h3 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 1rem;
    font-weight: bold;
}

#tentang p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

#tentang .btn-outline-success {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: #ffffff;
    background-color: #5cb338;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#tentang .btn-outline-success:hover {
    background-color: #4da52d;
}

#tentang img.custom-img {
    width: 80%;
    /* Atur ukuran gambar agar lebih kecil */
    max-width: 300px;
    /* Batas maksimal lebar gambar */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    #tentang {
        text-align: center;
    }

    #tentang .row {
        flex-direction: column;
    }

    #tentang img.custom-img {
        width: 100%;
        /* Sesuaikan untuk perangkat kecil */
    }
}

/* faq */
.accordion-item {
    transition: all 0.3s ease;
}

#toggle-faqs {
    display: inline-block;
    background-color: #ffc107;
    border: none;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#toggle-faqs:hover {
    background-color: #e0a800;
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.card-img-top {
    object-fit: cover;
    height: 200px;
}

.breadcrumb-item a {
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}


html {
    scroll-behavior: smooth;
}

.table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: teal;
    padding: 10px;
}

.table td {
    vertical-align: top;
    padding: 10px;
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

.doctor-card {
    margin-bottom: 10px;
}

.doctor-card strong {
    color: teal;
}

hr {
    border: 0.5px solid #dee2e6;
}